Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Ubuntu support with multi-architecture builds and improve cross-platform compatibility #128

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

soonhong99
Copy link
Contributor

Changes

This PR introduces support for Ubuntu environments and multi-architecture builds, enhancing the cross-platform compatibility of the FossLight wrapper.

Key updates include:

  • Creation of fosslight_wrapper_ubuntu.py for streamlined Docker image usage on Ubuntu
  • Implementation of GitHub Actions workflow for building Ubuntu executables (aarch64, x86_64)
  • Update to the release process, now including Ubuntu-specific artifacts
  • Overall improvements to cross-platform compatibility and user experience

Testing Instructions

To test the new Ubuntu wrapper:

  1. Download the appropriate executable from the latest GitHub release:

    • For aarch64: fosslight_wrapper_ubuntu-aarch64
    • For x86_64: fosslight_wrapper_ubuntu-x86_64
  2. Ensure Docker is installed, logged in, and running on your Ubuntu system.

  3. Place the downloaded executable in the directory you wish to analyze.

  4. Grant execution permissions:

chmod +x fosslight_wrapper_ubuntu-<arch>
Replace <arch> with either aarch64 or x86_64 as appropriate.

  1. Run the wrapper:
    ./fosslight_wrapper_ubuntu-<arch>

  2. For custom options (e.g., analyzing a specific path, Git repository, or setting custom output paths), use:
    ./fosslight_wrapper_ubuntu-<arch> --manual
    This will prompt for various configuration options.

Notes

  • Ensure you have sufficient permissions to run Docker commands.
  • The wrapper will create log files in the execution directory for troubleshooting purposes.

Please test on both architectures if possible and report any issues or unexpected behavior.

Type of change

Please insert 'x' one of the type of change.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Documentation update
  • Refactoring, Maintenance
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

- Create fosslight_wrapper_ubuntu.py for easy Docker image usage on Ubuntu
- Add GitHub Actions workflow for building Ubuntu executables (aarch64, x86_64)
- Update release process to include Ubuntu-specific artifacts
- Improve cross-platform compatibility and ease of use

This commit enhances the FossLight wrapper to support Ubuntu environments
and multiple CPU architectures, making it more accessible to a wider range
of users and systems.

Signed-off-by: soonhong99 <nanayah99@naver.com>
Signed-off-by: soonhong99 <nanayah99@naver.com>
Signed-off-by: soonhong99 <nanayah99@naver.com>
@soimkim soimkim added the chore [PR/Issue] Refactoring, maintenance the code label Oct 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore [PR/Issue] Refactoring, maintenance the code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants